We have always defaults to an empty ornament, so that menu items
are always aligned, even when radio items are used.
However radio items are fairly rare, so most of the time we end
up with an extra margin with no purpose. The design team now
prefers radio items to only align with each other, so that regular
items get the expected margin.
Change the defaults accordingly.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2843>
this._ornamentIcon = new St.Icon({style_class: 'popup-menu-ornament'});
this.add(this._ornamentIcon);
- this.setOrnament(Ornament.NONE);
+ this.setOrnament(Ornament.HIDDEN);
this._parent = null;
this._active = false;
ellipsize: Pango.EllipsizeMode.NONE,
line_wrap: true,
});
- this._placeholderItem.setOrnament(PopupMenu.Ornament.HIDDEN);
this.menu.addMenuItem(this._placeholderItem);
this._deviceSection.actor.bind_property('visible',
// Turn into an empty container with no padding
this.styleClass = '';
- this.setOrnament(PopupMenu.Ornament.HIDDEN);
// Add intermediate section; we need this for submenu support
this._mainSection = new PopupMenu.PopupMenuSection();